define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

		//返回信息
		return {
			// 获取用户数据
			get_UserInfo: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.get';

				//post请求
				Http.post(param, callback, error, done);
			},

			save_UserInfo: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.update';

				//post请求
				Http.post(param, callback, error, done);
			},
		};
	}

	factory.$inject = ['Http'];
	return app.registerService("Personal_data", factory);
});